﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.Magazines
{
    public static class MagazineBLL
    {
        public static int GetMagazineCount(IList<Condition> conditionArray)
        {
            return MagazineDAL.GetMagazineCount(conditionArray);
        }

        public static List<MagazineEntity> GetMagazineList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return MagazineDAL.GetMagazineList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static List<MagazineEntity> GetMagazineList(IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return MagazineDAL.GetMagazineList(conditionArray, sortField, sortMode);
        }

        public static MagazineEntity GetMagazine(int magazineID)
        {
            return MagazineDAL.GetMagazine(magazineID);
        }

        public static int InsertMagazine(MagazineEntity magazine)
        {
            return MagazineDAL.InsertMagazine(magazine);
        }

        public static int UpdateMagazine(MagazineEntity magazine)
        {
            return MagazineDAL.UpdateMagazine(magazine);
        }

        public static int DeleteMagazine(int magazineID)
        {
            return MagazineDAL.DeleteMagazine(magazineID);
        }

        public static int SetMagazineEnable(int magazineID)
        {
            return MagazineDAL.SetMagazineEnable(magazineID);
        }

        public static int HitMagazine(int magazineID)
        {
            return MagazineDAL.HitMagazine(magazineID);
        }
    }
}
